package task;

import model.AgriculturalMachine;

import java.util.ArrayList;
import java.util.List;

public class TaskManager {
    private List<JobTask> tasks = new ArrayList<>();

    public void addTask(JobTask task) {
        tasks.add(task);
    }

    public void executeAllTasks() {
        for (JobTask task : tasks) {
            task.execute();
        }
    }
}